import request from "@/utils/request";

export default {
  getList(params) {
    return request({
      url: "/eduservice/eduteacher/list",
      method: "get",
      params
    });
  },

  page(current, pageSize, teacherquery) {
    return request({
      url: `/eduservice/eduteacher/${current}/${pageSize}`,
      method: "post",
      data: teacherquery
    });
  },

  add(teacher) {
    return request({
      url: "/eduservice/eduteacher",
      method: "post",
      data: teacher
    });
  },

  updatebyid(teacher) {
    return request({
      url: "/eduservice/eduteacher",
      method: "put",
      data: teacher
    });
  },

  del(id) {
    return request({
      url: "/eduservice/eduteacher/" + id,
      method: "delete"
    });
  },

  byid(id) {
    return request({
      url: "/eduservice/eduteacher/" + id,
      method: "get"
    });
  }
};
